package com.hyt.it.ogt.kq.service.gov.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * <p>
 * 违纪行为表
 * </p>
 *
 * @author huangyh
 * @since 2021-03-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("kw_break_rule_behavior")
@ApiModel(value="KwBreakRuleBehavior对象", description="违纪行为表")
public class BreakRuleBehavior extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "考试任务id不能为空")
    @ApiModelProperty(value = "考试任务id(前端必传)")
    private String taskId;

    @Size(max = 32,message = "违纪行为代码长度不能大于32个字符")
    @NotBlank(message = "违纪行为代码不能为空")
    @ApiModelProperty(value = "违纪行为代码(前端必传)")
    private String code;

    @NotBlank(message = "违纪处理代码不能为空")
    @ApiModelProperty(value = "违纪处理代码(前端必传)")
    private String schemeId;

    @NotBlank(message = "违纪行为描述不能为空")
    @ApiModelProperty(value = "违纪行为描述(前端必传)")
    private String content;

    @ApiModelProperty(value = "排序", hidden = true)
    private Integer sort;

}
